<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MQ</title>
<link href="../css/mq.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript" src="../scripts/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
	window.onload = setState;
	
	function setState(){
   		var state= document.getElementById("payState").value;
   		if(state==1)
   			document.getElementById("payState_yes").checked="checked";
   		else
   			document.getElementById("payState_no").checked="checked";
   		state= document.getElementById("isUsed").value;
   		if(state==1)
   			document.getElementById("isUsed_yes").checked="checked";
   		else
   			document.getElementById("isUsed_no").checked="checked";	

	} 
</script>

</head>

<body>
	<div id="write">
	<form action="addOrders.do" method="post" name="/admin">
	    <h4>用户信息</h4>
<table id="mailInfo" style="border-top:#dddddd solid 1px; border-bottom:#dddddd solid 1px" frame=below rules=rows  bordercolor="#FFFFFF" width="100%" border="1" cellspacing="0" cellpadding="4" >
  <tr>
    <td width="100px" class="tdstyle" >用户名：</td>
    <td ><input type="hidden" name="user.id" value="${user.id }"/> <input type="text" name="user.userName" value="${user.userName }"/></td>
  </tr>
  <tr>
    <td class="tdstyle" >新郎名：</td>
    <td><input type="text" name="user.husband" value="${user.husband }"/></td>
  </tr>
  <tr>
    <td class="tdstyle" >新娘名：</td>
    <td><input type="text" name="user.wife" value="${user.wife }"/> </td>
  </tr>
  <tr>
    <td class="tdstyle" >联系电话：</td>
    <td><input type="text" name="user.mobile" value="${user.mobile }"/> </td>
  </tr>
  <tr>
    <td class="tdstyle" >联系email：</td>
    <td><input type="text" name="user.email" value="${user.email }"/> </td>
  </tr>
  <tr>
    <td class="tdstyle" >备注：</td>
    <td><input type="text" name="user.notes" value="${user.notes }"/> </td>
  </tr>
   <tr>
    <td class="tdstyle" >所在省：</td>
    <td><input type="text" name="user.province" value="${user.province }"/> </td>
  </tr>
  <tr>
    <td class="tdstyle" >所在市：</td>
    <td><input type="text" name="user.city" value="${user.city }"/> </td>
  </tr>

  

</table>
    <h4>订单信息</h4>
<table id="mailInfo" style="border-top:#dddddd solid 1px; border-bottom:#dddddd solid 1px" frame=below rules=rows  bordercolor="#FFFFFF" width="100%" border="1" cellspacing="0" cellpadding="4" >

   <tr >
    <td width="100px" class="tdstyle"  >套餐：</td>
    <td> <input type="hidden" name="orders.id" value="${orders.id }"/> <s:select list="chargeList" name="orders.chargeId" listValue="chargeName" listKey="id"></s:select> </td>
   
  </tr>
  <tr>
    <td class="tdstyle" >订单类型：</td>
    <td><s:select list="#{'个人购买':'个人购买','渠道购买':'渠道购买','总代购买':'总代购买' }" name="orders.orderType"></s:select> </td>
  </tr>
  <tr>
    <td class="tdstyle" >支付状态：</td>
    <td><input type="radio" name="orders.payState" id="payState_yes" value="1"/>是&nbsp;&nbsp;<input id="payState_no" type="radio" name="orders.payState" value="0"/>否
    <input type="hidden" value="${orders.payState }" id="payState"/> </td>
  </tr>
  <tr>
    <td class="tdstyle" >生效时间：</td>
    <td><input type="text" name="effectTime" value="${orders.effectTime }" onclick="WdatePicker()" readonly/> </td>
  </tr>
    <tr>
    <td class="tdstyle" >定位码：</td>
    <td><input type="text" name="orders.code" value="${orders.code }"/> </td>
  </tr>
  <tr>
    <td class="tdstyle" >备注：</td>
    <td><input type="text" name="orders.notes" value="${orders.notes }"/> </td>
  </tr>
  <tr>
    <td class="tdstyle" >是否使用：</td>
    <td><input type="radio" name="orders.isUsed" id="isUsed_yes" value="1"/>是&nbsp;&nbsp;<input id="isUsed_no" type="radio" name="orders.isUsed" value="0"/>否
    <input type="hidden" value="${orders.isUsed }" id="isUsed"/></td>
  </tr>
</table>
	<div class="text_margin1">
		<input  type="submit" value=" 发 送 "  class="buttonstyle-2word"/>
		<input  type="reset" value=" 重 置 " class="buttonstyle-2word" /></div>
</form>
</div>

	<!------------------------------------------------------------------ -->
<!--------------------------------------- -->
</body>
</html>
